


#include "network.h"
#include "server.h"
#include "client.h"
#include <exception>
#include <iostream>

#ifdef WIN32
#include <windows.h>
#endif


#define SERVER

int main(){

    try{

#ifdef SERVER
    Server svr;
    svr.init();
#else
    Client clt;
    clt.init();

#endif
    }catch ( std::exception & e){
        std::cerr << e.what() <<std::endl;
    }


    //system("PAUSE");

}
